{{extend name="index/table-list" /}}


{{block name="main"}}
<!-- 内容区域 -->
        <div class="tpl-content-wrapper">


            <div class="row-content am-cf">
                <div class="row">

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">修改角色</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">

                                <form class="am-form tpl-form-border-form tpl-form-border-br" action="{{:url('admin/RoleController/update',['id'=>$data['id']])}}" method="post">
                                    <input type="hidden" name="_method" value="PUT" >
                                    <input type="hidden" name="id" value="{{$data['id']}}">

                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label">角色<span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="tpl-form-input" name="name" value="{{$data['name']}}" placeholder="请输入名字">

                                        </div>
                                    </div>


                                    <div class="am-form-group">
                                        <label class="am-u-sm-3 am-form-label">说明<span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" name="remark" value="{{$data['remark']}}" placeholder="输入SEO关键字">
                                        </div>
                                    </div>


                                    <div class="am-form-group">
                                        <label  class="am-u-sm-3 am-form-label">状态<span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <input type="radio" name="status" value="0" {{if condition="$data.status eq '0'"}}checked{{/if}} >禁用
                                            <input type="radio" name="status" value="1" {{if condition="$data.status eq '1'"}}checked{{/if}} >启用
                                        </div>
                                    </div>



                                    <div class="am-form-group">
                                        <div class="am-u-sm-9 am-u-sm-push-3">
                                            <button  class="am-btn am-btn-primary tpl-btn-bg-color-success ">修改</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
















            </div>
        </div>

{{/block}}


